package com.taoyusen.jpf.server.dto;

import java.util.Date;

import com.taoyusen.jpf.dao.pojo.TSysUserinfo;

public class UserInfoDto 
{

	 private String userId;
     private String userName;
     private String userCode;
     private String sex;
     private String sexName;
     private Date birthday;
     private String remark;
	
	
	public TSysUserinfo copyTsysUserInfo(TSysUserinfo  userInfo,UserInfoDto dto)
	{
		
		userInfo.setUserId(dto.getUserId());
		userInfo.setUserName(dto.getUserName());
		userInfo.setUserCode(dto.getUserCode());
		userInfo.setSex(dto.getSex());
		//userInfo.setBirthday(birthday)
		
		return userInfo;
	}
	  
	  
	public UserInfoDto copyUserInfoDto(UserInfoDto dto,TSysUserinfo userInfo)
	{
		dto.setUserId(userInfo.getUserId());
		dto.setUserName(userInfo.getUserName());
		dto.setUserCode(userInfo.getUserCode());
		dto.setSex(userInfo.getSex());
		if(dto.getSex().equals("1"))
		{
			dto.setSexName("男");
		}
		else
		{
			dto.setSexName("女");
		}
		dto.setBirthday(userInfo.getBirthday());
		dto.setRemark(userInfo.getRemark());
		return dto;
	}


	public Date getBirthday() {
		return birthday;
	}


	public void setBirthday(Date birthday) {
		this.birthday = birthday;
	}


	public String getRemark() {
		return remark;
	}


	public void setRemark(String remark) {
		this.remark = remark;
	}


	public String getSex() {
		return sex;
	}


	public void setSex(String sex) {
		this.sex = sex;
	}


	public String getUserCode() {
		return userCode;
	}


	public void setUserCode(String userCode) {
		this.userCode = userCode;
	}


	public String getUserId() {
		return userId;
	}


	public void setUserId(String userId) {
		this.userId = userId;
	}


	public String getUserName() {
		return userName;
	}


	public void setUserName(String userName) {
		this.userName = userName;
	}


	public String getSexName() {
		return sexName;
	}


	public void setSexName(String sexName) {
		this.sexName = sexName;
	}
	
	


	
	  
}
